<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="common/include :: header('编辑餐厅')" />
</head>
<body class="white-bg">
	<div class="wrapper wrapper-content animated fadeInRight ibox-content">
		<form class="form-horizontal m" id="form-employee-edit" th:object="${canteen}">
			<input name="id" type="hidden" th:field="*{id}"/>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">餐厅名称：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="name" required th:value="*{canteenName}">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label is-required">餐厅位置：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="email" required th:value="*{address}">
				</div>
			</div>
		</form>
	</div>
	<th:block th:include="common/include :: footer" />
	<th:block th:include="common/include :: datetimepicker" />
	<script type="text/javascript">
		var prefix = ctx + "/business/canteens";
		function submitHandler() {
	        if ($.validate.form()) {
	        	$.operate.save(prefix + "/edit", $('#form-employee-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
